/*
 * XML Type:  AbstractTransactionRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.AbstractTransactionRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML AbstractTransactionRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class AbstractTransactionRequestImpl extends net.ofx.types.x2003.x04.impl.AbstractRequestImpl implements net.ofx.types.x2003.x04.AbstractTransactionRequest
{
    
    public AbstractTransactionRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TRNUID$0 = 
        new javax.xml.namespace.QName("", "TRNUID");
    private static final javax.xml.namespace.QName CLTCOOKIE$2 = 
        new javax.xml.namespace.QName("", "CLTCOOKIE");
    private static final javax.xml.namespace.QName TAN$4 = 
        new javax.xml.namespace.QName("", "TAN");
    
    
    /**
     * Gets the "TRNUID" element
     */
    public java.lang.String getTRNUID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRNUID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TRNUID" element
     */
    public net.ofx.types.x2003.x04.GloballyUniqueUserIdType xgetTRNUID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GloballyUniqueUserIdType target = null;
            target = (net.ofx.types.x2003.x04.GloballyUniqueUserIdType)get_store().find_element_user(TRNUID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "TRNUID" element
     */
    public void setTRNUID(java.lang.String trnuid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRNUID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TRNUID$0);
            }
            target.setStringValue(trnuid);
        }
    }
    
    /**
     * Sets (as xml) the "TRNUID" element
     */
    public void xsetTRNUID(net.ofx.types.x2003.x04.GloballyUniqueUserIdType trnuid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GloballyUniqueUserIdType target = null;
            target = (net.ofx.types.x2003.x04.GloballyUniqueUserIdType)get_store().find_element_user(TRNUID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GloballyUniqueUserIdType)get_store().add_element_user(TRNUID$0);
            }
            target.set(trnuid);
        }
    }
    
    /**
     * Gets the "CLTCOOKIE" element
     */
    public java.lang.String getCLTCOOKIE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CLTCOOKIE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "CLTCOOKIE" element
     */
    public net.ofx.types.x2003.x04.IdType xgetCLTCOOKIE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(CLTCOOKIE$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "CLTCOOKIE" element
     */
    public boolean isSetCLTCOOKIE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CLTCOOKIE$2) != 0;
        }
    }
    
    /**
     * Sets the "CLTCOOKIE" element
     */
    public void setCLTCOOKIE(java.lang.String cltcookie)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CLTCOOKIE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CLTCOOKIE$2);
            }
            target.setStringValue(cltcookie);
        }
    }
    
    /**
     * Sets (as xml) the "CLTCOOKIE" element
     */
    public void xsetCLTCOOKIE(net.ofx.types.x2003.x04.IdType cltcookie)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(CLTCOOKIE$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(CLTCOOKIE$2);
            }
            target.set(cltcookie);
        }
    }
    
    /**
     * Unsets the "CLTCOOKIE" element
     */
    public void unsetCLTCOOKIE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CLTCOOKIE$2, 0);
        }
    }
    
    /**
     * Gets the "TAN" element
     */
    public java.lang.String getTAN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAN$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TAN" element
     */
    public net.ofx.types.x2003.x04.TransactionAuthorizationNumberType xgetTAN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransactionAuthorizationNumberType target = null;
            target = (net.ofx.types.x2003.x04.TransactionAuthorizationNumberType)get_store().find_element_user(TAN$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "TAN" element
     */
    public boolean isSetTAN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TAN$4) != 0;
        }
    }
    
    /**
     * Sets the "TAN" element
     */
    public void setTAN(java.lang.String tan)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAN$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TAN$4);
            }
            target.setStringValue(tan);
        }
    }
    
    /**
     * Sets (as xml) the "TAN" element
     */
    public void xsetTAN(net.ofx.types.x2003.x04.TransactionAuthorizationNumberType tan)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransactionAuthorizationNumberType target = null;
            target = (net.ofx.types.x2003.x04.TransactionAuthorizationNumberType)get_store().find_element_user(TAN$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TransactionAuthorizationNumberType)get_store().add_element_user(TAN$4);
            }
            target.set(tan);
        }
    }
    
    /**
     * Unsets the "TAN" element
     */
    public void unsetTAN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TAN$4, 0);
        }
    }
}
